﻿@model AssetManageSystem.ViewModel.AssetManage.AssetAllocationVMs.AssetAllocationVM
@inject IStringLocalizer<Program> Localizer;

<wt:form vm="@Model">
    <wt:row items-per-row="ItemsPerRowEnum.Two">
        <wt:display field="Entity.DocNumber" />
        <wt:selector field="Entity.AssetId" list-vm="AssetInfoList" text-bind="AssetInfoList.EntityList[0].AsName"
            colspan="2" submit-func="GetData" width="550" select-button-text="请选择资产">
            <wt:searchpanel>
                <wt:combobox field="AssetInfoList.Searcher.UseDepId" items="AssetInfoList.Searcher.AllUseDeps"
                    link-field="AssetInfoList.Searcher.UsePeopleId" trigger-url="/OrgManage/user/GetUserByDep" />
                <wt:combobox field="AssetInfoList.Searcher.UsePeopleId" items="AssetInfoList.Searcher.AllUsePeoples" />
            </wt:searchpanel>
        </wt:selector>
        <wt:combobox field="Entity.OldDepId" items="AllOldDeps" disabled="true" />
        <wt:combobox field="Entity.OldUserId" items="AllOldUsers" disabled="true" />
        <wt:combobox field="Entity.NewDepId" items="AllNewDeps" link-field="Entity.NewUserId" trigger-url="/OrgManage/user/GetUserByDep" />
        <wt:combobox field="Entity.NewUserId" items="AllNewUsers" />
        <wt:datetime field="Entity.OutDate" />
    </wt:row>
    <wt:hidden field="Entity.ID" />
    <wt:row align="AlignEnum.Right">
        <wt:submitbutton />
        <wt:closebutton />
    </wt:row>
</wt:form>
